<?php
/*
Plugin Name: NHS Choices
Plugin URI: http://code.google.com/p/nhschoices-wp/
Version: 0.0.1
Author: Mark Steadman
Author URL: http://substrakt.co.uk
Description: A plugin for easily accessing information on GPs, dental practices and other services provided by the NHS. 
*/

require_once('controllers/api.php');
require_once('controllers/db.php');
require_once('controllers/plugin.php');
require_once('controllers/widget.php');

global $nhs_choices, $NHS_SERVICES, $STRAKT_API_URL, $NHS_API_URL;

$NHS_SERVICES = array(
	'1' => 'GPs',
	'2' => 'Dentists',
	'3' => 'Pharmacies',
	'4' => 'Opticians',
	'5' => 'Hospitals',
	'7' => 'Walk-in centres',
	'9' => 'Stop-smoking services',
	'10' => 'NHS trusts',
	'11' => 'Sexual health services',
	'13' => 'Sport and fitness services',
	'15' => 'Parenting and childcare services',
	'17' => 'Alcohol Services',
	'19' => 'Services for carers',
	'20' => 'Renal Services',
	'21' => 'Minor injuries units',
	'22' => 'Mental health services',
	'23' => 'Breast cancer screening',
	'24' => 'Support for independent living',
	'26' => 'Memory problems',
	'27' => 'Termination of pregnancy clinics',
	'28' => 'Foot Services',
	'29' => 'Diabetes clinics',
	'30' => 'Asthma clinics',
	'31' => 'Midwifery teams',
	'32' => 'Community clinics'
);

$STRAKT_API_URL = 'http://nhschoicescred.appspot.com/api/';
$NHS_API_URL = "http://www.nhs.uk/NHSCWS/Services/ServicesSearch.aspx";
$nhs_choices = new NHSChoicesPluginContoller();

register_activation_hook(__FILE__, array(&$nhs_choices->db, 'install'));

?>